﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Nursery_Rhymes
{
    public partial class frmNurseryRhymes : Form
    {
        public frmNurseryRhymes()
        {
            InitializeComponent();
        }

        private void label3_Click(object sender, EventArgs e)
        {

        }

        private void btnCheckIt_Click(object sender, EventArgs e)
        {
            // Activity 2-8
            string w1, w2, w3;
            w1 = txtFirstWord.Text.Trim().ToLower();
            w2 = txtSecondWord.Text.Trim().ToLower();
            w3 = txtThirdWord.Text.Trim().ToLower();
            if (w1 == "hickory" && w2 == "dickory" && w3 == "dock" || w1 == "three" && w2 == "blind" && w3 == "mice")
            {
                MessageBox.Show("Well Done!");
            }
            else 
            {
                MessageBox.Show("Try again...");
            }
        }
    }
}
